from fastapi import APIRouter, Request

from app.core.responses import Response
from modules.admin.services.order import OrderServices

router = APIRouter(prefix="/order")


@router.get("/{user_id}", summary="获取用户订单列表")
async def index(user_id:int):
    data = OrderServices.get_paid_all(user_id).serialize()
    return Response.success(data)
